package com.liuyanzhao.blog.entity;

import java.util.Date;
/**
 * 
 * @author Baokai Wang
 *  页面属性及其set、get
 * @CrateTime: 2019年6月17日
 */
public class Page {
    private Integer pageId;

    private String pageKey;

    private String pageTitle;

    private String pageContent;

    private Date pageCreateTime;

    private Date pageUpdateTime;

    private Integer pageViewCount;

    private Integer pageCommentCount;

    private Integer pageStatus;

    public Integer getPageId() {
        return pageId;
    }

    public void setPageId(Integer pageId) {
        this.pageId = pageId;
    }

    public String getPageKey() {
        return pageKey;
    }

    public void setPageKey(String pageKey) {
        this.pageKey = pageKey == null ? null : pageKey.trim();
    }

    public String getPageTitle() {
        return pageTitle;
    }

    public void setPageTitle(String pageTitle) {
        this.pageTitle = pageTitle == null ? null : pageTitle.trim();
    }

    public String getPageContent() {
        return pageContent;
    }

    public void setPageContent(String pageContent) {
        this.pageContent = pageContent == null ? null : pageContent.trim();
    }

    public Date getPageCreateTime() {
        return pageCreateTime;
    }

    public void setPageCreateTime(Date pageCreateTime) {
        this.pageCreateTime = pageCreateTime;
    }

    public Date getPageUpdateTime() {
        return pageUpdateTime;
    }

    public void setPageUpdateTime(Date pageUpdateTime) {
        this.pageUpdateTime = pageUpdateTime;
    }

    public Integer getPageViewCount() {
        return pageViewCount;
    }

    public void setPageViewCount(Integer pageViewCount) {
        this.pageViewCount = pageViewCount;
    }

    public Integer getPageCommentCount() {
        return pageCommentCount;
    }

    public void setPageCommentCount(Integer pageCommentCount) {
        this.pageCommentCount = pageCommentCount;
    }

    public Integer getPageStatus() {
        return pageStatus;
    }

    public void setPageStatus(Integer pageStatus) {
        this.pageStatus = pageStatus;
    }

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((pageCommentCount == null) ? 0 : pageCommentCount.hashCode());
		result = prime * result + ((pageContent == null) ? 0 : pageContent.hashCode());
		result = prime * result + ((pageCreateTime == null) ? 0 : pageCreateTime.hashCode());
		result = prime * result + ((pageId == null) ? 0 : pageId.hashCode());
		result = prime * result + ((pageKey == null) ? 0 : pageKey.hashCode());
		result = prime * result + ((pageStatus == null) ? 0 : pageStatus.hashCode());
		result = prime * result + ((pageTitle == null) ? 0 : pageTitle.hashCode());
		result = prime * result + ((pageUpdateTime == null) ? 0 : pageUpdateTime.hashCode());
		result = prime * result + ((pageViewCount == null) ? 0 : pageViewCount.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Page other = (Page) obj;
		if (pageCommentCount == null) {
			if (other.pageCommentCount != null)
				return false;
		} else if (!pageCommentCount.equals(other.pageCommentCount))
			return false;
		if (pageContent == null) {
			if (other.pageContent != null)
				return false;
		} else if (!pageContent.equals(other.pageContent))
			return false;
		if (pageCreateTime == null) {
			if (other.pageCreateTime != null)
				return false;
		} else if (!pageCreateTime.equals(other.pageCreateTime))
			return false;
		if (pageId == null) {
			if (other.pageId != null)
				return false;
		} else if (!pageId.equals(other.pageId))
			return false;
		if (pageKey == null) {
			if (other.pageKey != null)
				return false;
		} else if (!pageKey.equals(other.pageKey))
			return false;
		if (pageStatus == null) {
			if (other.pageStatus != null)
				return false;
		} else if (!pageStatus.equals(other.pageStatus))
			return false;
		if (pageTitle == null) {
			if (other.pageTitle != null)
				return false;
		} else if (!pageTitle.equals(other.pageTitle))
			return false;
		if (pageUpdateTime == null) {
			if (other.pageUpdateTime != null)
				return false;
		} else if (!pageUpdateTime.equals(other.pageUpdateTime))
			return false;
		if (pageViewCount == null) {
			if (other.pageViewCount != null)
				return false;
		} else if (!pageViewCount.equals(other.pageViewCount))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "Page [pageId=" + pageId + ", pageKey=" + pageKey + ", pageTitle=" + pageTitle + ", pageContent="
				+ pageContent + ", pageCreateTime=" + pageCreateTime + ", pageUpdateTime=" + pageUpdateTime
				+ ", pageViewCount=" + pageViewCount + ", pageCommentCount=" + pageCommentCount + ", pageStatus="
				+ pageStatus + "]";
	}
    
    
    
}